package com.chartboost.sdk.impl;

import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;

public class ag
{
  private static boolean a = false;
  private static boolean b = false;
  static final Logger f = Logger.getLogger("org.bson.BSON");
  static bd<List<an>> g = new bd();
  static bd<List<an>> h = new bd();
  protected static Charset i = Charset.forName("UTF-8");
  static ThreadLocal<ai> j = new ThreadLocal()
  {
    protected ai a()
    {
      return new al();
    }
  };
  static ThreadLocal<ah> k = new ThreadLocal()
  {
    protected ah a()
    {
      return new ak();
    }
  };

  public static Object a(Object paramObject)
  {
    if (!a());
    while (true)
    {
      return paramObject;
      if ((g.a() != 0) && (paramObject != null))
      {
        List localList = (List)g.a(paramObject.getClass());
        if (localList != null)
        {
          Iterator localIterator = localList.iterator();
          while (localIterator.hasNext())
            paramObject = ((an)localIterator.next()).a(paramObject);
        }
      }
    }
  }

  public static String a(int paramInt)
  {
    StringBuilder localStringBuilder = new StringBuilder();
    a[] arrayOfa = a.values();
    int m = arrayOfa.length;
    int n = 0;
    int i1 = paramInt;
    while (n < m)
    {
      a locala = arrayOfa[n];
      if ((i1 & locala.j) > 0)
      {
        localStringBuilder.append(locala.k);
        i1 -= locala.j;
      }
      n++;
    }
    if (i1 > 0)
      throw new IllegalArgumentException("some flags could not be recognized.");
    return localStringBuilder.toString();
  }

  private static boolean a()
  {
    return (a) || (b);
  }

  private static enum a
  {
    private static final Map<Character, a> m;
    public final int j;
    public final char k;
    public final String l;

    static
    {
      int i1 = 0;
      a = new a("CANON_EQ", 0, 128, 'c', "Pattern.CANON_EQ");
      b = new a("UNIX_LINES", 1, 1, 'd', "Pattern.UNIX_LINES");
      c = new a("GLOBAL", 2, 256, 'g', null);
      d = new a("CASE_INSENSITIVE", 3, 2, 'i', null);
      e = new a("MULTILINE", 4, 8, 'm', null);
      f = new a("DOTALL", 5, 32, 's', "Pattern.DOTALL");
      g = new a("LITERAL", 6, 16, 't', "Pattern.LITERAL");
      h = new a("UNICODE_CASE", 7, 64, 'u', "Pattern.UNICODE_CASE");
      i = new a("COMMENTS", 8, 4, 'x', null);
      a[] arrayOfa1 = new a[9];
      arrayOfa1[0] = a;
      arrayOfa1[1] = b;
      arrayOfa1[2] = c;
      arrayOfa1[3] = d;
      arrayOfa1[4] = e;
      arrayOfa1[5] = f;
      arrayOfa1[6] = g;
      arrayOfa1[7] = h;
      arrayOfa1[8] = i;
      n = arrayOfa1;
      m = new HashMap();
      a[] arrayOfa2 = values();
      int i2 = arrayOfa2.length;
      while (i1 < i2)
      {
        a locala = arrayOfa2[i1];
        m.put(Character.valueOf(locala.k), locala);
        i1++;
      }
    }

    private a(int paramInt, char paramChar, String paramString)
    {
      this.j = paramInt;
      this.k = paramChar;
      this.l = paramString;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.chartboost.sdk.impl.ag
 * JD-Core Version:    0.6.2
 */